/**
 * 输入限制
 * */
lucky.define(['jquery'],function(exports){
    var MOD_NAME = "inputmask";

    var Inputmask = function(alias, options, internal){
        if (!(this instanceof Inputmask)) return new Inputmask(alias, options, internal);
        this.el = undefined, this.events = {}, this.maskset = undefined, this.refreshValue = !1,
        !0 !== internal && (
            $.isPlainObject(alias) ? options = alias : (options = options || {}).alias = alias,
                this.opts = $.extend(!0, {}, this.defaults, options),
                this.noMasksCache = options && options.definitions !== undefined,
                this.userOptions = options || {},
                this.isRTL = this.opts.numericInput,
                resolveAlias(this.opts.alias, options, this.opts)
        );
    };

    var resolveAlias = function(aliasStr, options, opts){
        var aliasDefinition = Inputmask.prototype.aliases[aliasStr];
        return aliasDefinition ? (aliasDefinition.alias && resolveAlias(aliasDefinition.alias, undefined, opts),
            $.extend(!0, opts, aliasDefinition), $.extend(!0, opts, options), !0) : (null === opts.mask && (opts.mask = aliasStr),
            !1);
    };

    Inputmask.extendDefaults = function(options){
        console.log("调用");
    };

    exports(MOD_NAME, Inputmask);
});